home *** CD-ROM | disk | FTP | other *** search
- # network-interface - configure network device
- #
- # This service causes network devices to be brought up or down as a result
- # of hardware being added or removed, including that which isn't ordinarily
- # removable.
-
- description "configure network device"
-
- start on net-device-added
- stop on net-device-removed INTERFACE=$INTERFACE
-
- instance $INTERFACE
-
- pre-start script
- mkdir -p /var/run/network
- exec ifup --allow auto $INTERFACE
- end script
-
- post-stop exec ifdown --allow auto $INTERFACE
-